<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>02-结构伪类_06-nth-of-type</title>
    <style>

        /*div:not(#text) {
            color: red;
        }*/

        :not(p):not(body):not(html) {
            color: red;
        }

    </style>
</head>
<body>


<p>p1</p>
<span>span1</span>
<strong>strong1</strong>


<!--<div>div1</div>
<div id="text">div2</div>
<div>div3</div>
<div>div4</div>-->

</body>
</html>